package com.lhl.booksystem.mapper;

import com.lhl.booksystem.pojo.Book;
import com.lhl.booksystem.pojo.BookType;
import com.lhl.booksystem.pojo.vo.BookVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LHL
 */
public interface BookMapper {
    List<BookVo> findBook();

    int addBook(Book book);
    int updateBook(Book book);
    int delete(@Param("arr") String[] arr);

    Book findById(int bid);

    List<BookType> findBookType();
}
